import { Component, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
    selector: 'app-child-two',
    templateUrl: './child-two.component.html',
    styleUrls: ['./child-two.component.less']
})
export class ChildTwoComponent implements OnInit {


    info = "childTwo字符串变量";

    @Output() myEvent = new EventEmitter();
    constructor() { }   

    ngOnInit() {
    }
    sendEvent(){
        this.myEvent.emit(this.info);
    }
}
